/**
 * @see [description](https://mp.weixin.qq.com/debug/wxadoc/dev/api/checkIsSoterEnrolledInDevice.html)
 */
export default function start_soter_authentication(checkAuthMode: 'fingerPrint' | 'facial' | 'speech') {
	return new Promise<{
		isEnrolled: boolean;	// 是否已录入信息
		errMsg: string;			// 接口调用结果
	}>((resolve, reject) => {
		wx.checkIsSoterEnrolledInDevice({
			checkAuthMode,
			fail(res) {
				reject(res);
			},
			success(res) {
				resolve(res);
			}
		});
	});
}
